﻿<views:MvxWpfView 
	x:Class="Sidvall.AuthorizationManager.UI.Wpf.Views.FilterView"
	xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
	xmlns:vms="clr-namespace:Sidvall.AuthorizationManager.UI.ViewModels;assembly=Sidvall.AuthorizationManager.UI.Identity"
	xmlns:local="clr-namespace:Sidvall.AuthorizationManager.UI.Wpf.Views" x:Name="mvxWpfView"
	xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters;assembly=Sidvall.UI.Wpf" 
	xmlns:Controls="clr-namespace:Sidvall.AuthorizationManager.UI.Wpf.Controls" 
	xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
	mc:Ignorable="d" 
	d:DesignHeight="550" d:DesignWidth="600">

	<Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:FilterViewModel}}">
		<Grid>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="150" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition />
			</Grid.ColumnDefinitions>

			<Label Content="Authorization Scope:"/>
			<ComboBox Grid.Column="1" Width="200" SelectedValuePath="AuthorizationScopeId" DisplayMemberPath="Name" SelectedValue="{Binding FilterContext.AuthorizationScopeId}"
											  ItemsSource="{Binding AuthorizationScopes}" HorizontalAlignment="Left" IsEnabled="{Binding CanEdit}" />
			<Controls:ButtonControl Grid.Column="2" ImageHeight="36" ImageWidth="36" ImageSource="/Sidvall.AuthorizationManager.UI.Wpf.Identity;component/Images/Clear.png" 
										ToolTip="Remove selection" ButtonCommand="{Binding ClearAuthorizationScopeCommand}" IsEnabled="{Binding CanClearAuthorizationScope}" />
		</Grid>

	</Grid>
</views:MvxWpfView>
